package com.zhangcuishan.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ChatGpt3dot5Request {
    public static final String ENDPOINT = "https://api.openai.com/v1/chat/completions";

    public static final String STREAM_MESSAGE_PREFIX = "data: ";

    private String model = "gpt-3.5-turbo";

    private Boolean stream;
    List<Message> messages = new ArrayList<>();

    @Data
    @AllArgsConstructor
    public static class Message {
        private String role;
        private String content;
    }
}